#include <stdio.h>

FILE *fp, *gp;
int main(int argc, char *argv[]){
    fp = fopen(argv[1], "r");
    gp = fopen(argv[2], "w");
    int site;
    printf("select a site to read:");
    scanf("%d", &site);
    fseek(fp, site, SEEK_SET);
    
    printf("\nselect a site to write:");
    scanf("%d", &site);
    fseek(gp, site, SEEK_SET);
    char c;
    while((c = getc(fp)) != EOF){
        putc(c, gp);
    }
    fclose(fp);
    fclose(gp);
}